<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const res= encodeURI('黑马程序员')
        console.log(res) //%E9%BB%91%E9%A9%AC%E7%A8%8B%E5%BA%8F%E5%91%98
        
        const res1 = decodeURI('%E9%BB%91')
        console.log(res1) //黑
        
    </script>
</body>
</html>